package com.jdym.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 个人银行卡管理
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Card对象", description="个人银行卡管理")
public class Card implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "个人银行ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "卡的类别")
    @TableField(value = "bank_Id")
    private String bankId;

    @ApiModelProperty(value = "卡号")
    private String cardNum;

    @ApiModelProperty(value = "姓名")
    private String cardName;

    @ApiModelProperty(value = "卡绑定的联系电话")
    private String phone;

    @ApiModelProperty(value = "企业id")
    @TableField(value = "firmId")
    private int firmId;

    //银行的图片url和名字
    @TableField(exist = false)
    private String cobankImg;
    @TableField(exist = false)
    private String cobankName;
}
